package io.gitee.twoke.generator.engine.impl.persistence.entity;

import lombok.ToString;

import java.util.HashMap;
import java.util.Map;

@ToString
public class  DataTableColumnEntityImpl extends AbstractEntity implements DataTableColumnEntity {
    private String id;
    private String tableId;
    private String columnName;
    private String columnComment;
    private String jdbcType;
    private String javaType;
    private String javaProperty;
    private boolean isInsert;
    private boolean isUpdate;
    private boolean isQuery;
    private boolean isList;
    private boolean isRequired;
    private boolean isPrimaryKey;
    private String queryType;
    private String componentType;
    private String dictType;
    private int sort;
    @Override
    public Object getPersistentState() {
        Map<String, Object> data = new HashMap<String, Object>();
        data.put("id", id);
        data.put("tableId", tableId);
        data.put("columnName", columnName);
        data.put("columnComment", columnComment);
        data.put("jdbcType", jdbcType);
        data.put("javaType", javaType);
        data.put("javaProperty", javaProperty);
        data.put("isInsert", isInsert);
        data.put("isUpdate", isUpdate);
        data.put("isQuery", isQuery);
        data.put("isList", isList);
        data.put("isRequired", isRequired);
        data.put("isPrimaryKey", isPrimaryKey);
        data.put("queryType", queryType);
        data.put("componentType", componentType);
        data.put("dictType", dictType);
        data.put("sort", sort);
        return data;
    }

    @Override
    public void setId(String id) {
		 this.id=id;
	}

    @Override
    public String getId() {
		 return this.id;
	}

    @Override
    public void setTableId(String tableId) {
		 this.tableId=tableId;
	}

    @Override
    public String getTableId() {
		 return this.tableId;
	}

    @Override
    public void setColumnName(String columnName) {
		 this.columnName=columnName;
	}

    @Override
    public String getColumnName() {
		 return this.columnName;
	}

    @Override
    public void setColumnComment(String columnComment) {
		 this.columnComment=columnComment;
	}

    @Override
    public String getColumnComment() {
		 return this.columnComment;
	}

    @Override
    public void setJdbcType(String jdbcType) {
		 this.jdbcType=jdbcType;
	}

    @Override
    public String getJdbcType() {
		 return this.jdbcType;
	}

    @Override
    public void setJavaType(String javaType) {
		 this.javaType=javaType;
	}

    @Override
    public String getJavaType() {
		 return this.javaType;
	}

    @Override
    public void setJavaProperty(String javaProperty) {
		 this.javaProperty=javaProperty;
	}

    @Override
    public String getJavaProperty() {
		 return this.javaProperty;
	}

    @Override
    public void setIsInsert(boolean isInsert) {
		 this.isInsert=isInsert;
	}

    @Override
    public boolean getIsInsert() {
		 return this.isInsert;
	}

    @Override
    public void setIsUpdate(boolean isUpdate) {
		 this.isUpdate=isUpdate;
	}

    @Override
    public boolean getIsUpdate() {
		 return this.isUpdate;
	}

    @Override
    public void setIsQuery(boolean isQuery) {
		 this.isQuery=isQuery;
	}

    @Override
    public boolean getIsQuery() {
		 return this.isQuery;
	}

    @Override
    public void setIsList(boolean isList) {
		 this.isList=isList;
	}

    @Override
    public boolean getIsList() {
		 return this.isList;
	}

    @Override
    public void setIsRequired(boolean isRequired) {
		 this.isRequired=isRequired;
	}

    @Override
    public boolean getIsRequired() {
		 return this.isRequired;
	}

    @Override
    public void setIsPrimaryKey(boolean isPrimaryKey) {
		 this.isPrimaryKey=isPrimaryKey;
	}

    @Override
    public boolean getIsPrimaryKey() {
		 return this.isPrimaryKey;
	}

    @Override
    public void setQueryType(String queryType) {
		 this.queryType=queryType;
	}

    @Override
    public String getQueryType() {
		 return this.queryType;
	}

    @Override
    public void setComponentType(String componentType) {
		 this.componentType=componentType;
	}

    @Override
    public String getComponentType() {
		 return this.componentType;
	}

    @Override
    public void setDictType(String dictType) {
		 this.dictType=dictType;
	}

    @Override
    public String getDictType() {
		 return this.dictType;
	}

    @Override
    public void setSort(int sort) {
		 this.sort=sort;
	}

    @Override
    public int getSort() {
		 return this.sort;
	}

}
